package com.itheima.exerciseTest.method10_19.method14;

import java.util.TreeSet;

public class Demo {
    public static void main(String[] args) {
        TreeSet<Student> ts = new TreeSet<>();
        Student s1 = new Student(1);
        Student s2 = new Student(2);
        Student s3 = new Student(3);
        Student s4 = new Student(4);
        Student s5 = new Student(5);
        Student s6 = new Student(6);
        ts.add(s1);
        ts.add(s2);
        /*ts.add(s1);
        ts.add(s1);
        ts.add(s1);
        ts.add(s1);*/
        System.out.println(ts);
    }
}
